package Lesson14;

public class Person 
{
	String name;
	int age;
	String personalNumber;
	char sex;
	double weight;
	int hunger = 50; // from 0 to 100
	int health = 50; //from 0 to 100
	int mentalStatus = 50; // from 0 to 100
	
	// defining a constructor:
	Person()
	{
		age = 30;
	}
	
	void eat(int foodVolume)
	{
		if (hunger+foodVolume>=100)
			hunger=100;
		else
			hunger+=foodVolume;
	}
	
	void walk()
	{
		System.out.println(name + "is walking");
		hunger-=5;
	}
	void grow()
	{
		age++;
	}
	void drinkWater(double litres)
	{
		System.out.println(name + " is drinking " + litres + " litres of water");
		hunger--;
	}
}
